-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement basic command line switch preprocessor for Cobalt #4930
base: main
Are you sure you want to change the base?
Implement basic command line switch preprocessor for Cobalt #4930
Conversation
b84967e
to
25fa83f
Compare
{switches::kRemoteAllowOrigins, "http://localhost:9222"}, | ||
}); | ||
|
||
class CommandLinePreprocessor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we move this class in a separate file and add a unit test?
}); | ||
|
||
// Switches with parameters. May require special handling with passed in values. | ||
const auto kCobaltParamSwitches = base::CommandLine::SwitchMap({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt this is trivially destructible go/cstyle#Static_and_Global_Variables
// This flag is added specifically for m114 and should be removed after | ||
// rebasing to m120+ | ||
#if BUILDFLAG(IS_ANDROID) | ||
switches::kUserLevelMemoryPressureSignalParams, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these flags used on Android? I thought those flags were in CobaltActivity.java
b/397982418